import 'package:flutter/material.dart';

final ThemeData appTheme = ThemeData(
  primaryColor: const Color(0xFF4CAF50),
  primarySwatch: Colors.green,
  scaffoldBackgroundColor: const Color(0xFFF6F8FA),
  appBarTheme: const AppBarTheme(
    backgroundColor: Color(0xFF4CAF50),
    elevation: 0,
  ),
  textTheme: const TextTheme(
    headline1: TextStyle(
      fontSize: 24.0, 
      fontWeight: FontWeight.bold,
      color: Colors.black,
    ),
    headline2: TextStyle(
      fontSize: 20.0, 
      fontWeight: FontWeight.bold,
      color: Colors.black,
    ),
    headline3: TextStyle(
      fontSize: 18.0, 
      fontWeight: FontWeight.bold,
      color: Colors.black,
    ),
    bodyText1: TextStyle(
      fontSize: 16.0,
      color: Colors.black87,
    ),
    bodyText2: TextStyle(
      fontSize: 14.0,
      color: Colors.black54,
    ),
  ),
  cardTheme: CardTheme(
    elevation: 2,
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(10),
    ),
  ),
  inputDecorationTheme: InputDecorationTheme(
    border: OutlineInputBorder(
      borderRadius: BorderRadius.circular(8),
    ),
    focusedBorder: OutlineInputBorder(
      borderRadius: BorderRadius.circular(8),
      borderSide: const BorderSide(
        color: Color(0xFF4CAF50),
        width: 2,
      ),
    ),
  ),
  buttonTheme: ButtonThemeData(
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(8),
    ),
    buttonColor: const Color(0xFF4CAF50),
  ),
  colorScheme: ColorScheme.fromSwatch().copyWith(
    secondary: const Color(0xFF8BC34A),
  ),
);
